<template>
  <div id="tab-list">
  
    <el-tabs v-model="activeName" @tab-click="handleClick" :style="{display:onSwitchCollpase?'block':'none'}">
      <el-tab-pane label="拖拽列表" name="draglist">
        <DragList></DragList>
      </el-tab-pane>
      <el-tab-pane label="组件映射" name="dragmap">
        <DragMap></DragMap>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import DragMap from "./DragMap";
import DragList from "./DragList";
import CollpaseMenu from "../FunctionComp/CollpaseMenu/CollpaseMenu";
export default {
  name: "TabList",
  components: {
    DragMap,
    DragList,
    CollpaseMenu
  },
  data() {
    return {
      activeName: "draglist",
      isCollapse:false
    };
  },
  methods:{
    handleClick() {
      
    },
    onSwitchCollpase(val) {
      this.isCollapse = val
    }
  },
  computed:{
    
  }
};
</script>

<style lang="scss" scoped>
#tab-list {
  width: 260px;
  height: 100%;
  background-color: rgb(68, 68, 68);
  padding: 0px 10px;
  position: relative;
}
</style>